Skip to content

Comments

Fix Icon Switching, System Alert Device, Add Priority Overrides per Speaker/Headphone, and Add Fast Switching#21

Open
jhenkens wants to merge 7 commits intotobi:mainfrom
jhenkens:main
Open

Fix Icon Switching, System Alert Device, Add Priority Overrides per Speaker/Headphone, and Add Fast Switching#21
jhenkens wants to merge 7 commits intotobi:mainfrom
jhenkens:main

Conversation

@jhenkens
Copy link

Bunch of commits - I can break them out if you like some but not all.

  1. Add a preferences window that contains the start-at-login setting intitially
  2. Fix the icon switching back to how it was in the releases - Headphone/Speaker Icon.
  3. Add the ability to assign an input device as a priority device for a given output device. This way you can prefer your webcam microphone, unless you are using your headphones, then prefer the headphone microphone.
  4. Add one-click fast switching as an option in the preferences pane. It requires a restart, but makes left click toggle between Headphone and Speakers, and right click bring up the dialog
  5. Add, with a preference, the System Default Output to be switched alongside the Default Output. This wasn't being switched before, and it seems when interacting via these APIs, OSX won't follow it like it does when you interact with their built in solutions.

Replace boolean "Quick Switch Mode" with flexible 4-action configuration
system allowing users to customize left click, right click, long left
click, and long right click behaviors.

Features:
- 4 customizable click actions with options: Toggle Mode, Show Menu, No Action
- Long press threshold: 500ms
- Validation ensures at least one action shows menu
- Migration from old isQuickSwitchEnabled setting
- Simplified app initialization (removed conditional setup)

Technical implementation:
- Custom LongPressButton overlay view to intercept mouse events
- Timer-based long press detection using run loop
- ClickActionsConfig model with JSON persistence in UserDefaults

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant